#ifndef PANEDEF
#define PANEDEF
#include <boost/shared_ptr.hpp>
#include "widget.h"
#include "house.h"
#include "SDL.h"

class pane:public widget{

	bool m_hovered;


public:

	pane();
	pane(widget*);
	void Draw();
	void SetParent(widget*);
	widget* GetParent();
	std::list<boost::shared_ptr<widget>> GetChildren();
	void AddChild(widget*);
	void RemoveChild(widget*);
	SDL_Surface* GetSurface();
	void SetRect(SDL_Rect);
	SDL_Rect GetRect();
	void SetDragable(bool){};
	bool GetDragable(){return true;};
	void SetClicked(bool);
	bool GetClicked();
	bool IsHovered(int,int);
	void Proccess(SDL_Event*);
	Uint32 color;
};


#endif